

<!--人数加减-->
var num_jia = document.getElementById("num-jia");
var num_jian = document.getElementById("num-jian");
var input_num = document.getElementById("input-num");

num_jia.onclick = function() {

    input_num.value = parseInt(input_num.value) + 1;
}

num_jian.onclick = function() {

        if (input_num.value <= 0) {
            input_num.value = 0;
        } else {

            input_num.value = parseInt(input_num.value) - 1;
        }

    }

$(document).ready(function () {
    $('.save').click(function () {
        swal({
            title: "保存到草稿成功",
            text: "返回继续编辑发布需求",
            type: "success"
        });
    });
    $('.commit').click(function () {
        // swal({
        //     title: "您成功的发布了一个需求",
        //     type: "success",
        //     button: "",
        // });
        swal({
            title: "您成功的发布了一个需求",
            type: "success",
            confirmButtonText: "查看需求",

        }, function () {
            window.location.href='../order/serviceOrder.jsp'
        });

    });
});
